{if isset($form.errors[$name])}
    <div class="error_message">{if empty($form.errors[$name])}{'VALIDATION_ERROR_EMPTY'|translate}{else}{$form.errors[$name]}{/if}</div>
{/if}